﻿using Microsoft.Practices.Composite.Modularity;
using Microsoft.Practices.Composite.Regions;

namespace WorldIndex.Modules.Contries
{
    public class Countries : IModule 
    {
        private readonly IRegionManager regionManager;

        public Countries(IRegionManager regionManager)
        {
            this.regionManager = regionManager;
        }

        public void Initialize()
        {
            regionManager.RegisterViewWithRegion("MainRegion", typeof (Views.CountryHelloWorld));
        }
    }
}
